home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIDOMWindowInternal.idl < prev    next >
Text File  |  2006-05-08  |  8KB  |  192 lines

  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 2000
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Vidur Apparao <vidur@netscape.com> (original author)
  24.  *   Johnny Stenback <jst@netscape.com>
  25.  *
  26.  * Alternatively, the contents of this file may be used under the terms of
  27.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  28.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  * in which case the provisions of the GPL or the LGPL are applicable instead
  30.  * of those above. If you wish to allow use of your version of this file only
  31.  * under the terms of either the GPL or the LGPL, and not to allow others to
  32.  * use your version of this file under the terms of the MPL, indicate your
  33.  * decision by deleting the provisions above and replace them with the notice
  34.  * and other provisions required by the GPL or the LGPL. If you do not delete
  35.  * the provisions above, a recipient may use your version of this file under
  36.  * the terms of any one of the MPL, the GPL or the LGPL.
  37.  *
  38.  * ***** END LICENSE BLOCK ***** */
  39.  
  40. #include "nsIDOMWindow2.idl"
  41.  
  42. interface nsIPrompt;
  43. interface nsIControllers;
  44. interface nsIDOMLocation;
  45.  
  46. [scriptable, uuid(f914492c-0138-4123-a634-6ef8e3f126f8)]
  47. interface nsIDOMWindowInternal : nsIDOMWindow2
  48. {
  49.   readonly attribute nsIDOMWindowInternal        window;
  50.  
  51.   /* [replaceable] self */
  52.   readonly attribute nsIDOMWindowInternal        self;
  53.  
  54.   readonly attribute nsIDOMNavigator             navigator;
  55.   readonly attribute nsIDOMScreen                screen;
  56.   readonly attribute nsIDOMHistory               history;
  57.  
  58.   /* [replaceable] content */
  59.   readonly attribute nsIDOMWindow                content;
  60.  
  61.   /* [replaceable] prompter */
  62.   [noscript] readonly attribute nsIPrompt        prompter;
  63.  
  64.   /* [replaceable] menubar */
  65.   readonly attribute nsIDOMBarProp               menubar;
  66.  
  67.   /* [replaceable] toolbar */
  68.   readonly attribute nsIDOMBarProp               toolbar;
  69.  
  70.   /* [replaceable] locationbar */
  71.   readonly attribute nsIDOMBarProp               locationbar;
  72.  
  73.   /* [replaceable] personalbar */
  74.   readonly attribute nsIDOMBarProp               personalbar;
  75.  
  76.   /* [replaceable] statusbar */
  77.   readonly attribute nsIDOMBarProp               statusbar;
  78.  
  79.   /* [replaceable] directories */
  80.   readonly attribute nsIDOMBarProp               directories;
  81.   readonly attribute boolean                     closed;
  82.   readonly attribute nsIDOMCrypto                crypto;
  83.   readonly attribute nsIDOMPkcs11                pkcs11;
  84.  
  85.   // XXX Shouldn't this be in nsIDOMChromeWindow?
  86.   /* [replaceable] controllers */
  87.   readonly attribute nsIControllers              controllers;
  88.  
  89.            attribute nsIDOMWindowInternal        opener;
  90.  
  91.   /* [replaceable] */
  92.            attribute DOMString                   status;
  93.            attribute DOMString                   defaultStatus;
  94.  
  95.   // XXX: The setter that takes a string argument needs to be special
  96.   // cased!
  97.   readonly attribute nsIDOMLocation              location;
  98.   
  99.   /* [replaceable] */
  100.            attribute long                        innerWidth;
  101.            attribute long                        innerHeight;
  102.            attribute long                        outerWidth;
  103.            attribute long                        outerHeight;
  104.            attribute long                        screenX;
  105.            attribute long                        screenY;
  106.  
  107.   /* The offset in pixels by which the window is scrolled */
  108.   readonly attribute long                        pageXOffset;
  109.   readonly attribute long                        pageYOffset;
  110.  
  111.   /* The maximum offset that the window can be scrolled to
  112.      (i.e., the document width/height minus the scrollport width/height) */
  113.   readonly attribute long                        scrollMaxX;
  114.   readonly attribute long                        scrollMaxY;
  115.  
  116.   /* [replaceable] length */
  117.   readonly attribute unsigned long               length;
  118.  
  119.            attribute boolean                     fullScreen;
  120.  
  121.   void                      alert(in DOMString text);
  122.   boolean                   confirm(in DOMString text);
  123.  
  124.   // prompt() should return a null string if cancel is pressed
  125.   DOMString                 prompt(in DOMString aMessage,
  126.                                    in DOMString aInitial,
  127.                                    in DOMString aTitle,
  128.                                    in unsigned long aSavePassword);
  129.  
  130.   void                      focus();
  131.   void                      blur();
  132.  
  133.   void                      back();
  134.   void                      forward();
  135.   void                      home();
  136.   void                      stop();
  137.  
  138.   void                      print();
  139.  
  140.   void                      moveTo(in long xPos, in long yPos);
  141.   void                      moveBy(in long xDif, in long yDif);
  142.   void                      resizeTo(in long width, in long height);
  143.   void                      resizeBy(in long widthDif, in long heightDif);
  144.   void                      scroll(in long xScroll, in long yScroll);
  145.  
  146.   //void                      clearTimeout(in long timerID);
  147.   //void                      clearInterval(in long timerID);
  148.   //[noscript] long           setTimeout(/* in function,
  149.   //                                        in unsigned long timeout */);
  150.   //[noscript] long           setInterval(/* in function,
  151.   //                                        in unsigned long timeout */);
  152.  
  153.   [noscript] nsIDOMWindow   open(in DOMString url, in DOMString name,
  154.                                  in DOMString options);
  155.   // This method works like open except that aExtraArgument gets
  156.   // converted into the array window.arguments in JS, if
  157.   // aExtraArgument is a nsISupportsArray then the individual items in
  158.   // the array are inserted into window.arguments, and primitive
  159.   // nsISupports (nsISupportsPrimitives) types are converted to native
  160.   // JS types when possible.
  161.   [noscript] nsIDOMWindow   openDialog(in DOMString url, in DOMString name,
  162.                                        in DOMString options,
  163.                                        in nsISupports aExtraArgument);
  164.   void                      close();
  165.  
  166.   // XXX Should this be in nsIDOMChromeWindow?
  167.   void                      updateCommands(in DOMString action);
  168.  
  169.   /* See nsIDOMJSWindow for the scriptable version of find()
  170.    * @param str: the search pattern
  171.    * @param caseSensitive: is the search caseSensitive
  172.    * @param backwards: should we search backwards
  173.    * @param wrapAround: should we wrap the search
  174.    * @param wholeWord: should we search only for whole words
  175.    * @param searchInFrames: should we search through all frames
  176.    * @param showDialog: should we show the Find dialog
  177.    */
  178.   [noscript] boolean        find(in DOMString str, 
  179.                                  in boolean caseSensitive,
  180.                                  in boolean backwards, 
  181.                                  in boolean wrapAround,
  182.                                  in boolean wholeWord, 
  183.                                  in boolean searchInFrames, 
  184.                                  in boolean showDialog);
  185.  
  186.   // Ascii base64 data to binary data and vice versa...
  187.   DOMString                 atob(in DOMString aAsciiString);
  188.   DOMString                 btoa(in DOMString aBase64Data);
  189.  
  190.   readonly attribute nsIDOMElement               frameElement;
  191. };
  192.